.middle > div {
    border: 1px solid rebeccapurple;
    overflow: hidden;
}

.middle > div > div {
    padding: 10px;
}

.detail > div {
    font-family: 仿宋;
    margin: 30px 0;
    line-height: 30px;
    text-indent: 3em;
}

/*------------------轮播-----------------*/
.carousel {
    display: flex;
    overflow: hidden;
    animation-name: carousel;
    animation-duration: 5s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    text-align: center;
}

@keyframes carousel {

    /*from {*/
    /*    margin-left: 0;*/
    /*}*/
    /*to {*/
    /*    margin-left: -500px;*/
    /*}*/
    0% {

    }
    20% {
        margin-left: -100px;
    }
    40% {
        margin-left: -300px;
    }
    60% {
        margin-left: -500px;
    }
    100% {
        margin-left: 100px;
    }
}

.carousel img {
    width: 150px;
    height: 150px;
}

.carousel > div {
    margin: 0 10px;
}